<?php

/**
 * @export Modules
 * @export-metadata default-module
 * @export-metadata RequiredRoles:Agencia:Linea
 */
class FrontPage extends Module {

    function index() {
//        $this->addMessage(new Message("Some message text", "A message", Message::ERROR));
//        $this->addMessage(new Message("Some message text", "A message", Message::WARNING));
//        $this->addMessage(new Message("Some message text", "A message", Message::SUCCESS));
//        $this->addMessage(new Message("Some message text", "A message", Message::INFO));
        $this->display("index");
    }

    function error() {
        throw new Exception("This is an intentional exception to test the 'Unhandled Module'");
    }

}

?>
